package admincow.servlet.raza;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import admincow.dao.RazaDAO;

/**
 * Servlet implementation class for Servlet: RazaEliminarServlet
 *
 */
 public class RazaEliminarServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
   static final long serialVersionUID = 1L;
   

	public RazaEliminarServlet() {
		super();
	}   	
	

	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		RazaDAO dao = new RazaDAO();
		int id = Integer.parseInt(request.getParameter("idRaza"));
		dao.eliminar(id);
		request.getRequestDispatcher("/razaBuscar.jsp").forward(request,
				response);
	}  	
	

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
	}   	  	    
}